package com.ndt.main;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ndt.service.DubboService;

public class Main {

	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {
				"spring-dubbo-consumer.xml"
		});
		context.start();
		
		DubboService service = (DubboService) context.getBean("dubboService");
		String str = service.getStr("World");
		System.err.println(str);
		System.in.read();
		
	}
}
